/**
 * Project Name:YCApiServer-admin
 * File Name:LoginService.java
 * Package Name:com.yc.music.admin.service
 * Date:2016年5月24日下午2:36:41
 * Copyright (c) 2016 
 *
 */
package com.lotter.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lotter.dao.OsaAdminMapper;

/**
 * ClassName: LoginService <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年5月24日 下午2:36:41 <br/>
 *
 * @author panguixiang
 * @version 
 */
@Service
public class LoginService {

	@Autowired
	private OsaAdminMapper osaAdminMapper;
	
	public boolean login(String username,String password) {
		Object obj = osaAdminMapper.adminLogin(username, password);
		if(obj!=null) {
			return true;
		} else {
			return false;
		}
	}
	
}
